package com.ynnz.service;

import com.ynnz.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerService {

    /**
     * 新增
     *
     * @param customer
     * @return
     */
    int insertCustomer(Customer customer);

    /**
     * 删除
     *
     * @return
     */
    int deleteCustomer(@Param("customerId") int customerId);

    /**
     * 更新
     *
     * @param customer
     * @return
     */
    int updateCustomer(Customer customer);

    /**
     * 查询测试
     *
     * @return
     */
    List<Customer> queryCustomer();

    /**
     * 多信息查询
     * @param customer
     * @param begin
     * @param size
     * @return
     */
    List<Customer> queryCust(Customer customer,@Param("begin") int begin,@Param("size")int size);
}
